package com.example.baselibrary.db.dao;

import com.example.baselibrary.db.BTDBHelper;
import com.example.baselibrary.db.table.DNDTable;

import cc.vv.lklibrary.db.dao.DBBaseTableDao;
import cc.vv.lklibrary.db.help.DBBaseOpenHelper;

/**
 * 免打扰操作
 *
 * @author: NPF
 * @date: 2018/4/12.
 */
public class DNDDao extends DBBaseTableDao<DNDTable, String> {


    public DNDDao(DBBaseOpenHelper openHelper) {
        super(openHelper);
    }

    private static DNDDao mInstance;

    public static DNDDao getInstance() {
        if (null == mInstance) {
            synchronized (DNDDao.class) {
                if (null == mInstance) {
                    mInstance = new DNDDao(BTDBHelper.getInstance());
                }
            }
        }
        return mInstance;
    }
}
